<div class="hot_article">
    <div class="hot_article_tit">
        <i></i>
        <span>热门文章</span>
    </div>
    <div class="hot_article_lei">
        <ul>
            <?php if (!empty($hot_list)) {
                foreach ($hot_list as $k => $v) { ?>
                    <li <?php echo $k<=2?'class="act"':''?>>
                        <i><?php echo $k + 1 ?></i>
                        <a href="<?php echo $v['url'] ? $v['url'] : \application\Comm\Func::createUrl('decorate/view', ['id' => $v['id']]) ?>"><?php echo $v['name'] ?></a>
                    </li>
                <?php }
            } ?>
        </ul>
    </div>
</div>